home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / text / hints / volume_05 / issue_05 < prev    next >
Text File  |  1995-02-16  |  26KB  |  940 lines

  1. Hints and Tips
  2. 5.5
  3. •   A5000 PC delete danger – I found out the hard way that deleting the PC
  4. directory (and probably Drive_C as well) gives a disc error over the
  5. area of the deleted partition. The only solution is to reformat the hard
  6. disc and restore the last backup. J.R.McLachlan, Hertford.
  7. 5.5
  8. Yes, there does appear to be a problem here. The same thing happened to
  9. us. In theory, the idea is that Drive_C is a filetype that is not
  10. deleteable. The trouble is that on the A5000, it seems to get confused
  11. and half delete it, leaving a blank entry in the file table (seen as a
  12. blank line in the filer window if you use “full info”). The answer is to
  13. change the filetype to, say, FFF with
  14. 5.5
  15. *SETTYPE $.<pathname>.Drive_C FFF
  16. 5.5
  17. before you try to delete it. Ed.
  18. 5.5
  19. •   BBC Tracker Ball − In December’s Archive, Paul asked for a wiring
  20. diagram to convert a BBC tracker ball to an Archimedes one. I have
  21. converted an old Marconi tracker ball for use on the Archimedes using
  22. the following diagram.
  23. 5.5
  24. The nine wires come out of the bottom of the tracker ball socket as I
  25. have drawn it. Socket 1 is marked, or it is on mine.
  26. 5.5
  27. The connections are as follows...
  28. 5.5
  29.    9-pin   Trackerball
  30. 5.5
  31.    mini DIN   Socket
  32. 5.5
  33.    1   3   yellow
  34. 5.5
  35.    2   6   black
  36. 5.5
  37.    3   7   brown
  38. 5.5
  39.    4   9   grey
  40. 5.5
  41.    5   2   orange
  42. 5.5
  43.    6   1   red
  44. 5.5
  45.    7   4   green
  46. 5.5
  47.    8   8   white
  48. 5.5
  49.    9   5   blue
  50. 5.5
  51. The colours are the colours on mine. They may differ between various
  52. tracker balls. A mark 1 Archimedes mouse lead will also fit this
  53. particular tracker ball but two leads need swapping round.
  54. 5.5
  55. Connectors 6 and 7, in my case red and brown, need to be changed over.
  56. This can be accomplished with a needle by gently lifting the black
  57. plastic clip above the connector with the needle whilst pulling gently
  58. on the wire to be removed.
  59. 5.5
  60. December’s article was, I think, for a mark 1 AMX mouse. I have a later
  61. AMX mouse which is the same design as the early Archimedes mouse and the
  62. lead is a straight swap.
  63. 5.5
  64. Dave Morrell, Middlesbrough
  65. 5.5
  66. •   Elite Cheat − Here is program that will create a commander file for
  67. use with Elite. It gives you the most needed items to get around a
  68. little better than before, especially the docking computer, (most
  69. welcome). When you have successfully loaded it in, use galaxy map to see
  70. where to go, a little bonus is waiting: Front beam laser, rear beam
  71. laser, large cargo bay (35 tons), docking computer, E.C.M. system, four
  72. missiles.
  73. 5.5
  74. REM>:0.$.Elite_com
  75. 5.5
  76. REM Program by Scott Edwards
  77. 5.5
  78. REM 3-1-92
  79. 5.5
  80. REM It is important that you have
  81. 5.5
  82. REM the correct checksums on the
  83. 5.5
  84. REM right line, the program will
  85. 5.5
  86. REM inform you if you have a wrong line.
  87. 5.5
  88. MODE0:OFF
  89. 5.5
  90. DIM store% &1000
  91. 5.5
  92. checkcode%=38901:code$=“”
  93. 5.5
  94. line%=390:inc%=0
  95. 5.5
  96. FOR l%=0 TO 17
  97. 5.5
  98. FOR blk%=0 TO 15
  99. 5.5
  100. READ code$
  101. 5.5
  102. dat%=EVAL(“&”+code$)
  103. 5.5
  104. checksum%=checksum%+dat%
  105. 5.5
  106. ?(store%+inc%)=dat%
  107. 5.5
  108. PRINT dat%,~dat%
  109. 5.5
  110. inc%+=1
  111. 5.5
  112. NEXT
  113. 5.5
  114. READ checkcode%
  115. 5.5
  116. IF checksum%<>checkcode% THEN
  117. 5.5
  118. PRINT “You have a data byte incorrect at ”;line%
  119. 5.5
  120. STOP
  121. 5.5
  122. ENDIF
  123. 5.5
  124. line%+=10:finalcheck%=checksum%
  125. 5.5
  126. checksum%=0
  127. 5.5
  128. NEXT
  129. 5.5
  130. IF finalcheck%=checkcode% THEN
  131. 5.5
  132. PRINT“You have a correct file for saving”
  133. 5.5
  134. REPEAT
  135. 5.5
  136. INPUT“Enter the commander name for your file  ”;A$
  137. 5.5
  138. UNTIL A$<>“”
  139. 5.5
  140. SYS“OS_File”,10,A$,&C87,,store%, store%+&11C
  141. 5.5
  142. ENDIF
  143. 5.5
  144. PRINT“Program is Finished,now run ELITE and use your new commander”
  145. 5.5
  146. END
  147. 5.5
  148. :
  149. 5.5
  150. REM Commander file for ELITE
  151. 5.5
  152. :
  153. 5.5
  154. DATA 16,B5,DC,72,DF,DD,20,C9,F2,3C, 54, EB,32,6F,EF,09,2244
  155. 5.5
  156. DATA E5,F9,61,E3,31,12,B8,70,85,F3, FE,A9,EB,11,02,DD,2439
  157. 5.5
  158. DATA 31,43,F2,80,D5,F6,81,FA,70,92, 9A, 72,B9,EB,FC,B9,2707
  159. 5.5
  160. DATA C9,B1,42,CE,85,DD,F6,7F,5D,00, D2,9A,92,D2,6F,FC,2553
  161. 5.5
  162. DATA B9,2F,F9,62,CF,B5,62,B8,7B,5E, 98,7E,AF,68,DC,AA,2413
  163. 5.5
  164. DATA DD,39,30,CD,40,D6,B5,EF,53,70, 9E,91,E9,99,EC,DB,2568
  165. 5.5
  166. DATA F1,2C,B1,50,C1,F5,4D,F7,EE,72, 97,52,A1,59,FC,A7,2558
  167. 5.5
  168. DATA FD,78,B2,CD,22,CA,AD,FF,54,7F, 3D,52,67,0A,66,D7,2204
  169. 5.5
  170. DATA F8,23,39,20,A2,B4,86,B4,6C,7D, 0B,1D,09,4A,D3,44,1663
  171. 5.5
  172. DATA D3,37,3F,07,0F,06,A6,63,23,E3, 1D,18,84,80,84,D4,1541
  173. 5.5
  174. DATA AA,8A,6B,10,8D,3B,39,43,EB,56, C6,B6,81,48,9F,1E,1846
  175. 5.5
  176. DATA 9A,77,2C,64,DC,BA,A5,49,10,CE, BD,17,33,EF,5E,D4,2091
  177. 5.5
  178. DATA A5,01,E8,E0,8D,12,71,30,6B,53, F9,F5,E9,47,02,B2,2110
  179. 5.5
  180. DATA 91,37,22,7D,F1,F6,A4,7A,DC,C2, 9C,8A,B5,FE,7C,CB,2602
  181. 5.5
  182. DATA 38,E2,DA,CF,49,E0,80,BF,CF,20, 6A,6E,E7,24,69,39,2207
  183. 5.5
  184. DATA 7E,74,89,36,A6,69,0B,36,B7,A9, 33,46,99,DD,35,07,1676
  185. 5.5
  186. DATA 34,D0,D6,93,1D,CF,F0,9B,03,0F, 61,EC,D6,13,E8,71,2181
  187. 5.5
  188. DATA 48,83,01,29,F7,5A,82,75,32,A8, BA,41,00,00,00,00,1298
  189. 5.5
  190. S Edwards, Stourbridge
  191. 5.5
  192. •   First Word Plus 2 − In Archive 3.12 someone was bemoaning the lack of
  193. a key that would toggle insert mode on and off. In fact the <insert> key
  194. itself will do just that.
  195. 5.5
  196. Robert Fuller, Basingstoke.
  197. 5.5
  198. •   Lemmings Passwords − For all you bald headed insomniacs....
  199. 5.5
  200. Taxing Level    
  201. 5.5
  202. 02 Justforyou   03 Runandflee   04
  203. Doortodoor
  204. 5.5
  205. 05 Stillalive   06 Fixedmyfix   07
  206. Anurebevan
  207. 5.5
  208. 08 Helpmemate   09 Drinknwine   10
  209. Tenpercent
  210. 5.5
  211. 11 Stickuptwo   12 DiginDelve    13
  212. Hisbadluck
  213. 5.5
  214. 14 Teensforth   15 Teensfifth   16
  215. Notsosweet
  216. 5.5
  217. 17 Driveukcar   18 Votesforme   19
  218. Tenstonine
  219. 5.5
  220. 20 Doublesten   21 Lockandkey   22
  221. Twoelevens
  222. 5.5
  223. 23 Justforme   24 Lemmingmore   25
  224. Jiveanjive
  225. 5.5
  226. 26 Lemsinafix   27 Lemsheavon   28
  227. Gardengate
  228. 5.5
  229. 29 Startowine   30 Fivexsixis
  230. 5.5
  231. Mayhem Level    
  232. 5.5
  233. 02 Nearlygone   03 Spendspree   04
  234. Onthefloor
  235. 5.5
  236. 05 Uncleclive   06 Clogclicks   07
  237. Difference
  238. 5.5
  239. 08 Waitanwait   09 Eatanddine   10
  240. Tentontess
  241. 5.5
  242. 11 Binisthree   12 Twotimesix   13
  243. Returntome
  244. 5.5
  245. 14 Twicelucky   15 Nineandsix   16
  246. Charitynum
  247. 5.5
  248. 17 Stillyoung   18 Comesofage   19
  249. Olderstill
  250. 5.5
  251. 20 Numbtwenty   21 Olderlemms   22
  252. Lemminduck
  253. 5.5
  254. 23 Soonbefree   24 Lemmsstore   25
  255. Lemmsdrive
  256. 5.5
  257. 26 Yourinafix   27 Lemtodevon   28Twostoplay
  258. 5.5
  259. 29 Oneafterme   30 Lemmgfinal
  260. 5.5
  261. Robin Jefferies,  West Sussex.
  262. 5.5
  263. •   Improving Logistix (v0.01) RISC-OS compatibility − As anyone who has a
  264. copy of Logistix will be aware, the RISC-OS support files to “upgrade”
  265. the package to run from the desktop do nothing except allow the
  266. application to be launched from the desktop! (I do not know if there was
  267. ever a subsequent release of Logistix since v0.01 − I assume not, as I
  268. was a registered owner and was never informed of any update.)
  269. 5.5
  270. In the case of old programs upgraded through the support disk, it’s
  271. likely that some of the software houses did not have any real experience
  272. of RISC-OS before the deadline date for the disk, so they may be excused
  273. for the minimal level of compliance. (Acorn could not be considered to
  274. have had any such excuse, but Logistix wasn’t actually written by them,
  275. they only marketed it for Grafox.)
  276. 5.5
  277. The directory structure of the “upgraded” !Logistix was rather messy,
  278. and all pathnames were specific to the directory structure, therefore
  279. not transportable from drive 0 and the $ directory. This makes it
  280. impossible to install on a hard disk without some editing. The major
  281. annoyance in using the application is that clicking on Logistix data
  282. files does nothing except give an error message! Files can only be
  283. loaded by first loading Logistix, then keyboarding through the menu
  284. system.
  285. 5.5
  286. The application directory can be arranged far better for RISC-OS by the
  287. movement of a few files, and a little editing with !Edit. Dealing with
  288. the directory structure first...
  289. 5.5
  290. All that the user wants to see of Logistix is the !Logistix application
  291. icon which can be double clicked on to start it. Your !System directory
  292. should contain a directory called Modules which contains the latest
  293. version of the FPE, Clib, Colours etc. As upgraded after using the
  294. support disk, a Logistix floppy disk contains the following directories:
  295. 5.5
  296. !System − A system folder which still requires updating with the RISC-OS
  297. extras disk for the newer versions of Clib etc. (The latest Floating
  298. Point Emulator (2.80) should also be placed in the Modules directory
  299. inside this.)
  300. 5.5
  301. !Logistix − The RISC-OS startup directory containing the !Boot,!Run and
  302. !Sprites files.
  303. 5.5
  304. Logistix − The actual Logistix program files and a (now outdated)
  305. Floating Point Emulator.
  306. 5.5
  307. MAKE A BACKUP COPY OF YOUR DISK then, using the backup copy...
  308. 5.5
  309. Move the Logistix directory into the !Logistix directory.
  310. 5.5
  311. Copy the latest FPEmulator you have into the !System.Modules directory.
  312. 5.5
  313. (You may then delete the copy in the Logistix directory.)
  314. 5.5
  315. Using !Edit, edit the !Logistix.!Boot file to contain the following
  316. lines:
  317. 5.5
  318. | !Boot for !Logistix version 0.01
  319. 5.5
  320. | Updated to allow autoload
  321. 5.5
  322. | (This is an OBEY file)
  323. 5.5
  324. Set Logi$Dir <Obey$Dir>
  325. 5.5
  326. IconSprites <Logi$Dir>.!Sprites
  327. 5.5
  328. Set File$Type_DFF Logistix
  329. 5.5
  330. Set Alias$@RunType_DFF Obey <Logi$Dir>.InitFile %%*0
  331. 5.5
  332. Edit the !Run file so that it becomes:
  333. 5.5
  334. | !Run for !Logistix version 0.01
  335. 5.5
  336. | with better RISC-OS compatability
  337. 5.5
  338. | (This is an OBEY file)
  339. 5.5
  340. IconSprites <Logi$Dir>.!Sprites
  341. 5.5
  342. WimpSlot -min 500k
  343. 5.5
  344. RMEnsure FPEmulator RMLoad <System$Path>Modules.FPEmulator
  345. 5.5
  346. Dir <Logi$Dir>.Logistix
  347. 5.5
  348. LGX
  349. 5.5
  350. The use of “<System$Path>Modules.” to reach the FPEmulator and setting
  351. up the system variable <Logi$Dir> allow proper transportability of the
  352. application, and it can now quite happily be installed anywhere in the
  353. directory structure on a hard disk. Clicking on a data file causes RISC-
  354. OS to check if a command has been matched to that file type. The system
  355. variable Alias$@RunType _xxx has to be set up for files of the type in
  356. question. If it has not been set up then you will get the error message
  357. “No run action specified for this file type”. This is exactly what
  358. happens with Logistix and similar applications written before (and even
  359. since!) RISC-OS made its appearance. The addition of the line Set
  360. Alias$@RunType_ DFF Obey <Logi$Dir>.InitFile %%*0 in the !Boot file
  361. corrects the original omission, along with the following Obey file.
  362. 5.5
  363. The file described here can be used with most applications which require
  364. keyboard input to load files, the exceptions being those which clear the
  365. keyboard buffer on start up. In principle, the method is simple. An Exec
  366. file is used containing the commands or keystrokes to be executed as
  367. though they had been entered at the keyboard. Due to the fact that only
  368. Obey files can process the Obey$Dir system variable, it could get a
  369. little bit confusing.
  370. 5.5
  371. One way around this is from an Obey file:
  372. 5.5
  373. 1. Collect the startup pathname from RISC-OS and put it in a system
  374. variable.
  375. 5.5
  376. 2. Using an Obey file, create an Exec file (by using Spool and Echo)
  377. containing all the commands which require to be carried out to start the
  378. application and set it up for a load operation.
  379. 5.5
  380. 3. Echo the system variable containing the full pathname into the Exec
  381. file.
  382. 5.5
  383. 4. Exec the file which has just been created.
  384. 5.5
  385. There is one small problem. When trying to write to the FIRST file being
  386. created by a *Spool operation, extraneous data flows into it before the
  387. data! A dummy file is spooled first to get rid of this before the real
  388. file is created.
  389. 5.5
  390. Using !Edit, create a new Obey file as follows, (You may miss out the
  391. comment lines, but please leave in the fact that it is public domain and
  392. attributed to me.)
  393. 5.5
  394. | “InitFile” − Public Domain by
  395. 5.5
  396. | D.Potter 26/6/90
  397. 5.5
  398. | Allows keyboard emulated loading
  399. 5.5
  400. | by double-clicking on a data file
  401. 5.5
  402. | in the RISC-OS desktop.
  403. 5.5
  404. | Intended in this version for
  405. 5.5
  406. | Logistix, but the principal will
  407. 5.5
  408. | work for other programs which do
  409. 5.5
  410. | not clear the keyboard buffer at
  411. 5.5
  412. | startup.
  413. 5.5
  414. | This is an Obey File. (Exec files
  415. 5.5
  416. | do not allow passing of system
  417. 5.5
  418. | parameters.) To pass actual
  419. 5.5
  420. | commands to Logistix, (or any
  421. 5.5
  422. | similar application), an Exec file
  423. 5.5
  424. | must be used.
  425. 5.5
  426. | The Exec file is built by this
  427. 5.5
  428. | file, including the full path for
  429. 5.5
  430. | the startup file that was clicked
  431. 5.5
  432. | on.
  433. 5.5
  434. | The !Boot file for app. must be an
  435. 5.5
  436. | Obey file containing the commands
  437. 5.5
  438. |      Set Logi$Dir <Obey$Dir>
  439. 5.5
  440. |      Set Alias$@RunType_xxx Obey <Logi$Dir>.InitFile %%*0
  441. 5.5
  442. | (As well as any other commands
  443. 5.5
  444. | already there)
  445. 5.5
  446. | Where xxx is the filetype for the
  447. 5.5
  448. | data file (DFF for Logistix).
  449. 5.5
  450. | Logi$Dir will be the directory
  451. 5.5
  452. | where the application resides, and
  453. 5.5
  454. | is automatically set up when the
  455. 5.5
  456. | application’s !Boot is first seen.
  457. 5.5
  458. | Note : the | characters at the
  459. 5.5
  460. | start of the above lines should
  461. 5.5
  462. | NOT be in the !Boot file!
  463. 5.5
  464. |
  465. 5.5
  466. | Put the pathname information in
  467. 5.5
  468. | temporary system variable Lload$
  469. 5.5
  470. Set Lload$ %*0
  471. 5.5
  472. | Clear extraneous data which
  473. 5.5
  474. | appears when a file is written to
  475. 5.5
  476. | at this stage by dummy spooling.
  477. 5.5
  478. | This data is not needed here any
  479. 5.5
  480. | more!
  481. 5.5
  482. Spool <Logi$Dir>.!LoadFile
  483. 5.5
  484. Echo <Lload$>
  485. 5.5
  486. spool
  487. 5.5
  488. | Now create the actual Exec file
  489. 5.5
  490. | which will run LGX and issue the
  491. 5.5
  492. | commands.
  493. 5.5
  494. Spool <Logi$Dir>.!LoadFile
  495. 5.5
  496. Echo || !LoadFile − Transient program built by InitFile
  497. 5.5
  498.  (PD) by D.Potter 1990
  499. 5.5
  500. Echo *Run <Logi$Dir>.!Run
  501. 5.5
  502. |
  503. 5.5
  504. | Send the Logistix load sequence −
  505. 5.5
  506. | Note : NO SPACES in the sequence!
  507. 5.5
  508. | /L = load, L= Logistix data file,
  509. 5.5
  510. | <Lload$>= Full filename,
  511. 5.5
  512. | A= All to be loaded  (You might
  513. 5.5
  514. | want to use a different load
  515. 5.5
  516. | sequence)
  517. 5.5
  518. | (Where a return is required such
  519. 5.5
  520. | as after the filename here,
  521. 5.5
  522. | simply start a new Echo statement
  523. 5.5
  524. | for the next command.)
  525. 5.5
  526. |
  527. 5.5
  528. Echo /LL<Lload$>
  529. 5.5
  530. Echo A
  531. 5.5
  532. |
  533. 5.5
  534. | Close the file
  535. 5.5
  536. Spool
  537. 5.5
  538. |
  539. 5.5
  540. | Set its file type
  541. 5.5
  542. SetType <Logi$Dir>.!LoadFile Command
  543. 5.5
  544. |
  545. 5.5
  546. | Lose the temporary system variable
  547. 5.5
  548. UnSet Lload$
  549. 5.5
  550. |
  551. 5.5
  552. | And run the file just created!
  553. 5.5
  554. Exec <Logi$Dir>.!LoadFile
  555. 5.5
  556. Save the above file as InitFile in the !Logistix directory.
  557. 5.5
  558. Now click on the !Boot file in the !Logistix directory to set the system
  559. variables. (You won’t always have to do this, as the !Boot file will be
  560. run the first time you open the directory containing !Logistix. You only
  561. need to do it at this time because you have been messing about with the
  562. files, and the !Boot file may be different now than when it was last
  563. run.) Clicking on any Logistix data file will now load Logistix and the
  564. data file ready for use. You will still have to set up any default
  565. prefixes etc.
  566. 5.5
  567. It is not possible to do this automatically with a simple file such as
  568. the above, because the full pathname would require to be split up to
  569. provide the path to your file directory minus the filename. i.e. you
  570. would require string handling facilities such as in Basic.
  571. 5.5
  572. Note: The Logistix application itself still sets the CSD to the Logistix
  573. directory within the !Logistix application directory. Implementing a
  574. fully RISC-OS compatible version would require rewriting of the actual
  575. coded LGX file, which is not possible without both the source code file
  576. and the full approval of both Acorn and Grafox.
  577. 5.5
  578. Other applications requiring a parameter block in memory − Other
  579. programs (in Basic) written before RISC-OS, which will autoload a data
  580. file at startup if a parameter block is set up in memory, could be made
  581. to auto load using a version of the following routine. Again, this
  582. builds an exec file which is run in Basic, using simple string handling
  583. to split off the filename from the full pathname.
  584. 5.5
  585. This example file was built to implement auto loading under RISC-OS on
  586. an old BBC program which was written for DFS, and without re-writing
  587. could not handle full pathnames, therefore it includes a line to set the
  588. current directory to the application directory.
  589. 5.5
  590. Note: This particular version works due to Basic being selected during
  591. the execution of the Exec file and the memory accessible to both the
  592. file and the program is that assigned by the selection of Basic. Any
  593. other programs (e.g. integrated packages) which are to use the shared
  594. parameter block must (obviously) use the same memory, so must not move
  595. out of Basic (return to the desktop) in between the programs, but simply
  596. chain each other.
  597. 5.5
  598. This actual file will be irrelevant to most users, but it does show a
  599. method of getting around the conversion of system variables to actual
  600. data therefore easing the amount of work involved in conversion of BBC B
  601. and Master programs to Archimedes. I know that re-writing the appli
  602. cations might be more sensible, but this is aimed at people who know how
  603. an application works, but didn’t write it in the first place!
  604. 5.5
  605. |    “Autoload”
  606. 5.5
  607. | A Customised version of “InitFile”
  608. 5.5
  609. | −  Public Domain by D.Potter
  610. 5.5
  611. |                             7/7/90
  612. 5.5
  613. |       —— Information ——-
  614. 5.5
  615. | Allows parameter block loading by
  616. 5.5
  617. | double-clicking on a data file
  618. 5.5
  619. | in the RISC-OS desktop.
  620. 5.5
  621. | Intended in this version for the
  622. 5.5
  623. | upgrade of an old BBC/Master
  624. 5.5
  625. | program called Datbase, but the
  626. 5.5
  627. | principal should work for other
  628. 5.5
  629. | Basic programs which when started
  630. 5.5
  631. | up check a parameter block in
  632. 5.5
  633. | memory, and if found to be valid,
  634. 5.5
  635. | will load the file referred to in
  636. 5.5
  637. | the block.
  638. 5.5
  639. | eg. Old “Integrated” suites of
  640. 5.5
  641. | programs which allow files to be
  642. 5.5
  643. | left as active or current for each
  644. 5.5
  645. | program in the suite.
  646. 5.5
  647. |
  648. 5.5
  649. | This is an Obey File.
  650. 5.5
  651. | An Exec file is built by this file
  652. 5.5
  653. | including the filename for the
  654. 5.5
  655. | startup file that was double
  656. 5.5
  657. | clicked on.
  658. 5.5
  659. | The !Boot file for app. must be an
  660. 5.5
  661. | Obey file containing the commands
  662. 5.5
  663. |       Set DatBa$Dir <Obey$Dir>
  664. 5.5
  665. |       Set Alias$@RunType_xxx Obey <DatBa$Dir>.AutoLoad %%*0
  666. 5.5
  667. | (As well as any other commands
  668. 5.5
  669. | already there)
  670. 5.5
  671. | Where xxx is the filetype for the
  672. 5.5
  673. | data file. (DatBa$Dir will be set
  674. 5.5
  675. | to the directory where the program
  676. 5.5
  677. | & this file reside when the !Boot
  678. 5.5
  679. | file is run)
  680. 5.5
  681. |
  682. 5.5
  683. | Put the full pathname information
  684. 5.5
  685. | in system variable DBload$
  686. 5.5
  687. Set DBload$ %*0
  688. 5.5
  689. | Clear extraneous data which
  690. 5.5
  691. | appears when a file is written to
  692. 5.5
  693. | at this stage by dummy spooling.
  694. 5.5
  695. | This data is not needed here
  696. 5.5
  697. | anymore!
  698. 5.5
  699. Spool <DatBa$Dir>.!LoadFile
  700. 5.5
  701. Echo <DBload$>
  702. 5.5
  703. spool
  704. 5.5
  705. |
  706. 5.5
  707. | Now create the actual Exec file
  708. 5.5
  709. | which will run the program and
  710. 5.5
  711. | load file.
  712. 5.5
  713. Spool <DatBa$Dir>.!LoadFile
  714. 5.5
  715. Echo || !LoadFile − Transient program built by AutoLoad
  716. 5.5
  717.  (PD) by D.Potter 1990
  718. 5.5
  719. Echo *Basic
  720. 5.5
  721. Echo REM this particular application requires the CSD to be it -
  722. 5.5
  723. Echo *Dir <DatBa$Dir>
  724. 5.5
  725. Echo REM The startup parameter block for this application
  726. 5.5
  727.  is at &F000, with
  728. 5.5
  729. Echo REM the filename held at &F100, any conditions for
  730. 5.5
  731.  printing at &F110,
  732. 5.5
  733. Echo REM the record number to display at start up held in R%,
  734. 5.5
  735. Echo REM and HIMEM held in H%
  736. 5.5
  737. Echo HIMEM=&F000
  738. 5.5
  739. Echo H%=&F000
  740. 5.5
  741. |    Echoing a system variable
  742. 5.5
  743. |    causes it to be converted to
  744. 5.5
  745. |    the real data.
  746. 5.5
  747. Echo F$=“<DBload$>”
  748. 5.5
  749. Echo REM Split off the actual filename itself (This
  750. 5.5
  751.  particular example is
  752. 5.5
  753. Echo REM for conversion of a BBC B/
  754. 5.5
  755. Master program which
  756. 5.5
  757.  has restricted
  758. 5.5
  759. Echo REM filename length, and therefore can’t handle
  760. 5.5
  761.  full pathnames)
  762. 5.5
  763. Echo REPEAT:F$=MID$(F$,INSTR(F$,“.”)+1):UNTIL INSTR(F$,“.”)=0
  764. 5.5
  765. Echo $&F100=F$ : $&F110=“”:R%=1
  766. 5.5
  767. Echo MO.12
  768. 5.5
  769. Echo CHAIN“DATBASE”
  770. 5.5
  771. |
  772. 5.5
  773. | Where a return is required after a
  774. 5.5
  775. | command such as L for load, simply
  776. 5.5
  777. | start a new Echo statement for the
  778. 5.5
  779. | next command − a return will be
  780. 5.5
  781. | put in.
  782. 5.5
  783. |
  784. 5.5
  785. | Close the file
  786. 5.5
  787. Spool
  788. 5.5
  789. |
  790. 5.5
  791. | Set its file type
  792. 5.5
  793. SetType <DatBa$Dir>.!LoadFile Command
  794. 5.5
  795. |
  796. 5.5
  797. | And do it!
  798. 5.5
  799. Exec <DatBa$Dir>.!LoadFile
  800. 5.5
  801. Douglas Potter, Glasgow
  802. 5.5
  803. •   Oak SCSI on A5000 − Using the ‘free’ menu option on a SCSI disc on the
  804. iconbar doesn’t make use of the new Free module in the RISC-OS 3 ROM. To
  805. correct this, include the following line in your hard disc boot file :
  806. 5.5
  807. Set Alias$Free ShowFree -FS scsi %0
  808. 5.5
  809. That’s all there is to it. Now, whenever you select ‘free’ from the SCSI
  810. menu, a Free window pops up. The ‘%0’ picks up the device (disc drive)
  811. name. Should you then subsequently wish to use Free from the command
  812. line, use :
  813. 5.5
  814. %Free [<disc spec>]
  815. 5.5
  816. Typing ShowFree at the command line (with no parameters) reports the
  817. command syntax.
  818. 5.5
  819. David Lenthall, London
  820. 5.5
  821. •   Refilling ink cartridges − We have, in past issues, published comments
  822. about refilling inkjet cartridges with various types of ink. Tord
  823. Eriksson sent in another such comment a while ago but I didn’t publish
  824. it. He now writes....
  825. 5.5
  826. Remember my recommending using water or fountain pen ink to keep your
  827. printer going when your ink supply is gone? You didn’t publish it
  828. (sensibly enough!) and I ran into deep trouble with it. I thought the
  829. printhead was a goner (and messed it up further...), as the printer
  830. didn’t work properly. After buying a new £100 head, with no improvement,
  831. I found out that the reason you shouldn’t refill the cartridges is that
  832. air easily leaks into the paint container if you disconnect it many
  833. times (as when injecting ink) because the membrane gets worn. This means
  834. that suction isn’t up to specification and you get uneven paint
  835. delivery.
  836. 5.5
  837. You may publish this as a warning − water does not harm a Canon BJ-what-
  838. ever printer − but the side-effects can be very troublesome! I could
  839. have spent the £100 on something more sensible!!!    Tord Eriksson,
  840. Sweden  A
  841. 5.5
  842. Impression Hints & Tips
  843. 5.5
  844. •   Function key changes (cont’d) − In addition to Michael Ben-Gershon’s
  845. excellent hint in Archive 5.2, p.12: Why not go the whole way and put
  846. all those styles (like those fonts you use regularly to enhance your
  847. texts) into your Impression default document, after you have assigned a
  848. function key to each of them?
  849. 5.5
  850. There are quite a lot of possibilities; in addition to those fields on
  851. the function key strip that are quite empty, you can remove the default
  852. styles you may not need (like hanging indent) and if there are some of
  853. those ten scales offered which you never use, you can simply take over
  854. those keys for your own styles.
  855. 5.5
  856. You will find that the editable field which allows you to define a
  857. keyboard short cut is slightly unusual: It accepts only certain entries
  858. (function keys, <Shift>, <Return>,..), and it is not necessary to delete
  859. the existing content with <Ctrl-U> − just click in the box, enter the
  860. new combination and click on OK. (Don’t press <Return>, because that
  861. simply means that the short cut for your style is the Return key!)
  862. 5.5
  863. Jochen Konietzko, Köln, Germany
  864. 5.5
  865. • Sprite files in Impression − Kevin Beales told us (Archive 5.4 p5)
  866. about Impression’s ability to scale pictures in Draw format. In this
  867. context, he forgot to mention something even more remarkable: Impression
  868. can also scale sprites! This works in exactly the same way as he
  869. described.
  870. 5.5
  871. Of course, due to the well known problems of jagged edges/loss of
  872. detail, you shouldn’t scale up or down too much; but if you have a
  873. sprite that is just slightly too big or too small for its intended
  874. place, then this feature of Impression is certainly extremely useful!
  875. 5.5
  876. Jochen Konietzko, Köln, Germany
  877. 5.5
  878. •   Illustrated Impression documents − I often include sprite and draw
  879. files in my Impression documents (for test papers and the like).
  880. 5.5
  881. One minor problem is that one can’t really edit those graphic frames in
  882. an Impression document. Therefore, to have the corresponding files
  883. always on hand, I save them into the document’s directory (after opening
  884. a window on this directory by <shift>-double clicking).
  885. 5.5
  886. This is one more reason for buying Compression: A typical sketch I make
  887. with DrawPlus is reduced from about 6k to about 2 kbytes. A screen shot
  888. made of an oscilloscope application I use takes up 100 kbytes; Compres
  889. sion reduces this to just about 5k bytes (!). This means that even
  890. pictures that appear in several documents don’t clog up the hard disk
  891. too much, if you always save them together with the documents they
  892. appear in.
  893. 5.5
  894. (Surely, though, the Draw files are already in the Impression document
  895. directory? Why not edit them directly from there? Two drawbacks, I
  896. suppose... you don’t know which file is which because they have names
  897. like Story2 and Story4 (but you could identify them if you have full
  898. info set in the filer window because of their size) and secondly the
  899. changes to the Drawfiles are only displayed then next time you load the
  900. Impression document. Ed.)
  901. 5.5
  902. (By the way: Can anyone tell me whether this hint will become obsolete
  903. once Computer Concepts’ much vaunted Impulse II will be available, that
  904. is, whether you will then be able to open a graphic file saved somewhere
  905. by clicking on a graphic frame in an Impression document?)
  906. 5.5
  907. Jochen Konietzko, Köln, Germany
  908. 5.5
  909. •   Tiny left hand margin − I often wondered why the default document on
  910. the Impression disc has a left hand margin set on the base style of a
  911. couple of millimetres. Because of my sense of symmetry, I reduced that
  912. to zero as soon as I started using Impression. Surely, if you create a
  913. new master page with, say, 10cm margins, you don’t want the lefthand
  914. margin to be 10.2cm?
  915. 5.5
  916. Suddenly it dawned on me... yes, I know I’m slow... the reason for the
  917. small lefthand margin is to make it easier to position the cursor to the
  918. left of the first character on a line. If, as I do, you have zero margin
  919. in the base style, you’ve got to judge the mouse cursor fairly accu
  920. rately otherwise it goes onto the paper margin and turns into a hand.
  921. Well, yer pays yer money... but I think I’ll stay as I am. I have too
  922. many documents to change them all. Ed.
  923. 5.5
  924. •   Impression speed users’ tips − I find that if you can get into the
  925. habit of using <adjust> reverse scrolling, it really does save time,
  926. especially when I am laying out the magazine and the screen is cluttered
  927. with windows. Just press <select> to scroll down and switch quickly to
  928. <adjust> to go back up again without having to move the mouse and locate
  929. the other end of the scroll bar − which could be under another window
  930. anyway.
  931. 5.5
  932. Also, <adjust> can be extremely useful, again with a cluttered screen,
  933. for moving windows whilst keeping them where they are relative to the
  934. other documents. It takes practice, but it speeds things up in the long
  935. run. Ed.  A
  936. 5.5
  937.  
  938.  
  939.  
  940.